//
//  YLAccountSettingViewModel.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/1.
//  Copyright © 2017年 she1323. All rights reserved.
//  我的账户

#import "YLAccountSettingViewModel.h"
#import "YLGlobeHeader.h"
@implementation YLAccountSettingViewModel

- (NSArray<YLIconTitleModelGroup *> *)groups
{
    if (!_groups) {
        __weak typeof(self) weakSelf = self;
        _groups = [[NSMutableArray array] init];
        // 第一组
        {
            YLIconTitleModelGroup *group = [[YLIconTitleModelGroup alloc] init];
            [group.models addObject:[YLIconTitleModel modelWithIcon:@"loginPassword" title:@"登录密码" clickBlock:^NSString *{
                return @"YLChangePasswordViewController";
            }]];
            
            [_groups addObject:group];
        }
       
        {
            YLIconTitleModelGroup *group = [[YLIconTitleModelGroup alloc] init];
            YLIconTitleContentModel *model = [YLIconTitleContentModel modelWithIcon:@"gestureCipher" title:@"手势密码" content:@"未设置"clickBlock:^NSString *{
                return @"SCGestureController";
            }];
            model.contentColor = YLLineColor;
            [group.models addObject:model];
            
            [_groups addObject:group];
        }
        
//        {
//            YLIconTitleModelGroup *group = [[YLIconTitleModelGroup alloc] init];
//            [group.models addObject:[YLIconTitleModel modelWithIcon:@"onlineService" title:@"在线客服" clickBlock:^NSString *{
//                return nil;
//            }]];
//
//            [_groups addObject:group];
//        }
        
        {
            YLIconTitleModelGroup *group = [[YLIconTitleModelGroup alloc] init];
           YLIconTitleContentModel *model =  [YLIconTitleContentModel modelWithIcon:@"customerserviceHotline" title:@"客服热线" content:@"400-6845-068" clickBlock:^NSString *{
               [weakSelf.kefuSubject sendNext:@"400-6845-068"];
               return @"";
           }];
            model.contentColor = YLLOrgColor;
            [group.models addObject:model
             ];
            [_groups addObject:group];
        }
        
        {
            YLIconTitleModelGroup *group = [[YLIconTitleModelGroup alloc] init];
            [group.models addObject:[YLIconTitleModel modelWithIcon:@"helpCenter" title:@"帮助中心" clickBlock:^NSString *{
                return @"WHShowMoreCellController";
            }]];
            
            [_groups addObject:group];
        }

//        {
//            YLIconTitleModelGroup *group = [[YLIconTitleModelGroup alloc] init];
//            [group.models addObject:[YLIconTitleModel modelWithIcon:@"feedback" title:@"意见反馈" clickBlock:^NSString *{
//                return nil;
//            }]];
//
//            [_groups addObject:group];
//        }
        
//        {
//            YLIconTitleModelGroup *group = [[YLIconTitleModelGroup alloc] init];
//            [group.models addObject:[YLIconTitleModel modelWithIcon:@"messageCenter" title:@"给我评论" clickBlock:^NSString *{
//                return nil;
//            }]];
//            
//            [_groups addObject:group];
//        }

        {
            YLIconTitleModelGroup *group = [[YLIconTitleModelGroup alloc] init];
            [group.models addObject:[YLIconTitleModel modelWithIcon:@"aboutUs" title:@"关于我们" clickBlock:^NSString *{
                return @"YLAboutUsViewController";
            }]];
            
            [_groups addObject:group];
        }

    
    }
    return _groups;
}


- (RACSubject *)kefuSubject
{
    if (!_kefuSubject) {
        _kefuSubject = [[RACSubject alloc] init];
    }
    return _kefuSubject;
}




@end
